package org.com.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
// spring 框架不能扫描到服务终端，所以要加一个配置类
// 作用：注入Spring WebSocket框架里的一个对象叫做ServerEndpoIntExporter
@Configuration
public class NewWebSocketConfig {
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
